package com.quick;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.quick.annotation.IgnoreToken;
import com.quick.util.I18nTool;

@SpringBootApplication
@RestController
public class StartApi {
	public static void main(String[] args) throws Exception {
		SpringApplication.run(StartApi.class, args);
	}
	
	@GetMapping
	@IgnoreToken
	public ResponseEntity<?> index(){
		String lang = I18nTool.languageText("A0000000001");
		String orderLang = I18nTool.languageText("A0000000002","马文成","202201010000101");
		return ResponseEntity.status(HttpStatus.OK).body(lang+"::"+orderLang);
	}
}
